import sys
import pyglet

import cocos
from cocos.actions import *
from cocos.layer import *
from cocos.menu import *
from cocos.scene import *
from cocos.director import director
from globalvars import *

import ui
import game
def main():
    director.init(width=480,height=320,resizable=True,caption="BoxFight - KotakTempur")
    #pyglet.clock.set_fps_limit(30)
    #director.run(game.GameScene())
    director.show_FPS = True
    director.run(game.GameScene())
    
    
if __name__ == "__main__":
    sys.exit(main())
    
